use gtk_container_forall, instead of gtk_container_foreach(). Makes
authorKristian Rietveld <kris@imendio.com>
Tue, 10 Jul 2007 17:47:10 +0000 (17:47 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Tue, 10 Jul 2007 17:47:10 +0000 (17:47 +0000)
2007-07-10  Kristian Rietveld  <kris@imendio.com>

* gtk/gtktooltip.c (find_widget_under_pointer),
(child_location_foreach): use gtk_container_forall, instead of
gtk_container_foreach().  Makes tooltips on notebook tabs work. (Fixes
bug reported by Christian Persch).

svn path=/trunk/; revision=18436

ChangeLog
gtk/gtktooltip.c

index 876335ff3416076cf45ea0cffe8170d0974ea1a6..33a8bc24a4f7787240da96d6cc2dcfb9f383c1fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-10  Kristian Rietveld  <kris@imendio.com>
+
+       * gtk/gtktooltip.c (find_widget_under_pointer),
+       (child_location_foreach): use gtk_container_forall, instead of
+       gtk_container_foreach().  Makes tooltips on notebook tabs work. (Fixes
+       bug reported by Christian Persch).
+
 2007-07-10  Kristian Rietveld  <kris@imendio.com>
 
        * gtk/gtktooltip.c (child_location_foreach): ignore invisible
index 045f9b182dbe9c0751e4474ff049c4e1a10f9dba..5b137de79430acf6a0d3baed99f9013eef04865e 100644 (file)
@@ -434,8 +434,8 @@ child_location_foreach (GtkWidget *child,
              tmp.y = y;
              tmp.container = child;
 
-             gtk_container_foreach (GTK_CONTAINER (child),
-                                    child_location_foreach, &tmp);
+             gtk_container_forall (GTK_CONTAINER (child),
+                                   child_location_foreach, &tmp);
 
              if (tmp.child)
                child_loc->child = tmp.child;
@@ -526,8 +526,8 @@ find_widget_under_pointer (GdkWindow *window,
       child_loc.container = event_widget;
       child_loc.child = NULL;
 
-      gtk_container_foreach (GTK_CONTAINER (event_widget),
-                            child_location_foreach, &child_loc);
+      gtk_container_forall (GTK_CONTAINER (event_widget),
+                           child_location_foreach, &child_loc);
 
       if (child_loc.child)
        event_widget = child_loc.child;